/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.portal.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-05-23
 * @version 1.0
 * @since 1.0
 */
public class GuestbookCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static GuestbookCriteria create() {
		return new GuestbookCriteria();
	}
	
	public static GuestbookCriteria create(Column column) {
		GuestbookCriteria that = new GuestbookCriteria();
		that.add(column);
        return that;
    }

    public static GuestbookCriteria create(String name, Object value) {
        return (GuestbookCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("cms_guestbook", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public GuestbookCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public GuestbookCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public GuestbookCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public GuestbookCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public GuestbookCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public GuestbookCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public GuestbookCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public GuestbookCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public GuestbookCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public GuestbookCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public GuestbookCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public GuestbookCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public GuestbookCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public GuestbookCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public GuestbookCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public GuestbookCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public GuestbookCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public GuestbookCriteria andIdEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdNotEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdGreaterThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdLessThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Long", "Float");
    	  return this;
      }

      public GuestbookCriteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Long", "Float");
          return this;
      }
        
      public GuestbookCriteria andIdIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Long", "Float");
          return this;
      }

      public GuestbookCriteria andIdNotIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Long", "Float");
          return this;
      }
	public GuestbookCriteria andFullNameIsNull() {
		isnull("full_name");
		return this;
	}
	
	public GuestbookCriteria andFullNameIsNotNull() {
		notNull("full_name");
		return this;
	}
	
	public GuestbookCriteria andFullNameIsEmpty() {
		empty("full_name");
		return this;
	}

	public GuestbookCriteria andFullNameIsNotEmpty() {
		notEmpty("full_name");
		return this;
	}
        public GuestbookCriteria andFullNameLike(java.lang.String value) {
    	   addCriterion("full_name", value, ConditionMode.FUZZY, "fullName", "java.lang.String", "Float");
    	   return this;
      }

      public GuestbookCriteria andFullNameNotLike(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.NOT_FUZZY, "fullName", "java.lang.String", "Float");
          return this;
      }
      public GuestbookCriteria andFullNameEqualTo(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.EQUAL, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameNotEqualTo(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.NOT_EQUAL, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameGreaterThan(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.GREATER_THEN, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.GREATER_EQUAL, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameLessThan(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.LESS_THEN, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("full_name", value, ConditionMode.LESS_EQUAL, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("full_name", value1, value2, ConditionMode.BETWEEN, "fullName", "java.lang.String", "String");
    	  return this;
      }

      public GuestbookCriteria andFullNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("full_name", value1, value2, ConditionMode.NOT_BETWEEN, "fullName", "java.lang.String", "String");
          return this;
      }
        
      public GuestbookCriteria andFullNameIn(List<java.lang.String> values) {
          addCriterion("full_name", values, ConditionMode.IN, "fullName", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andFullNameNotIn(List<java.lang.String> values) {
          addCriterion("full_name", values, ConditionMode.NOT_IN, "fullName", "java.lang.String", "String");
          return this;
      }
	public GuestbookCriteria andEmailIsNull() {
		isnull("email");
		return this;
	}
	
	public GuestbookCriteria andEmailIsNotNull() {
		notNull("email");
		return this;
	}
	
	public GuestbookCriteria andEmailIsEmpty() {
		empty("email");
		return this;
	}

	public GuestbookCriteria andEmailIsNotEmpty() {
		notEmpty("email");
		return this;
	}
        public GuestbookCriteria andEmailLike(java.lang.String value) {
    	   addCriterion("email", value, ConditionMode.FUZZY, "email", "java.lang.String", "String");
    	   return this;
      }

      public GuestbookCriteria andEmailNotLike(java.lang.String value) {
          addCriterion("email", value, ConditionMode.NOT_FUZZY, "email", "java.lang.String", "String");
          return this;
      }
      public GuestbookCriteria andEmailEqualTo(java.lang.String value) {
          addCriterion("email", value, ConditionMode.EQUAL, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailNotEqualTo(java.lang.String value) {
          addCriterion("email", value, ConditionMode.NOT_EQUAL, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailGreaterThan(java.lang.String value) {
          addCriterion("email", value, ConditionMode.GREATER_THEN, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("email", value, ConditionMode.GREATER_EQUAL, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailLessThan(java.lang.String value) {
          addCriterion("email", value, ConditionMode.LESS_THEN, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailLessThanOrEqualTo(java.lang.String value) {
          addCriterion("email", value, ConditionMode.LESS_EQUAL, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("email", value1, value2, ConditionMode.BETWEEN, "email", "java.lang.String", "String");
    	  return this;
      }

      public GuestbookCriteria andEmailNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("email", value1, value2, ConditionMode.NOT_BETWEEN, "email", "java.lang.String", "String");
          return this;
      }
        
      public GuestbookCriteria andEmailIn(List<java.lang.String> values) {
          addCriterion("email", values, ConditionMode.IN, "email", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andEmailNotIn(List<java.lang.String> values) {
          addCriterion("email", values, ConditionMode.NOT_IN, "email", "java.lang.String", "String");
          return this;
      }
	public GuestbookCriteria andTitleIsNull() {
		isnull("title");
		return this;
	}
	
	public GuestbookCriteria andTitleIsNotNull() {
		notNull("title");
		return this;
	}
	
	public GuestbookCriteria andTitleIsEmpty() {
		empty("title");
		return this;
	}

	public GuestbookCriteria andTitleIsNotEmpty() {
		notEmpty("title");
		return this;
	}
        public GuestbookCriteria andTitleLike(java.lang.String value) {
    	   addCriterion("title", value, ConditionMode.FUZZY, "title", "java.lang.String", "String");
    	   return this;
      }

      public GuestbookCriteria andTitleNotLike(java.lang.String value) {
          addCriterion("title", value, ConditionMode.NOT_FUZZY, "title", "java.lang.String", "String");
          return this;
      }
      public GuestbookCriteria andTitleEqualTo(java.lang.String value) {
          addCriterion("title", value, ConditionMode.EQUAL, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleNotEqualTo(java.lang.String value) {
          addCriterion("title", value, ConditionMode.NOT_EQUAL, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleGreaterThan(java.lang.String value) {
          addCriterion("title", value, ConditionMode.GREATER_THEN, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("title", value, ConditionMode.GREATER_EQUAL, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleLessThan(java.lang.String value) {
          addCriterion("title", value, ConditionMode.LESS_THEN, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleLessThanOrEqualTo(java.lang.String value) {
          addCriterion("title", value, ConditionMode.LESS_EQUAL, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("title", value1, value2, ConditionMode.BETWEEN, "title", "java.lang.String", "String");
    	  return this;
      }

      public GuestbookCriteria andTitleNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("title", value1, value2, ConditionMode.NOT_BETWEEN, "title", "java.lang.String", "String");
          return this;
      }
        
      public GuestbookCriteria andTitleIn(List<java.lang.String> values) {
          addCriterion("title", values, ConditionMode.IN, "title", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andTitleNotIn(List<java.lang.String> values) {
          addCriterion("title", values, ConditionMode.NOT_IN, "title", "java.lang.String", "String");
          return this;
      }
	public GuestbookCriteria andMsgIsNull() {
		isnull("msg");
		return this;
	}
	
	public GuestbookCriteria andMsgIsNotNull() {
		notNull("msg");
		return this;
	}
	
	public GuestbookCriteria andMsgIsEmpty() {
		empty("msg");
		return this;
	}

	public GuestbookCriteria andMsgIsNotEmpty() {
		notEmpty("msg");
		return this;
	}
        public GuestbookCriteria andMsgLike(java.lang.String value) {
    	   addCriterion("msg", value, ConditionMode.FUZZY, "msg", "java.lang.String", "String");
    	   return this;
      }

      public GuestbookCriteria andMsgNotLike(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.NOT_FUZZY, "msg", "java.lang.String", "String");
          return this;
      }
      public GuestbookCriteria andMsgEqualTo(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.EQUAL, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgNotEqualTo(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.NOT_EQUAL, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgGreaterThan(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.GREATER_THEN, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.GREATER_EQUAL, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgLessThan(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.LESS_THEN, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgLessThanOrEqualTo(java.lang.String value) {
          addCriterion("msg", value, ConditionMode.LESS_EQUAL, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("msg", value1, value2, ConditionMode.BETWEEN, "msg", "java.lang.String", "String");
    	  return this;
      }

      public GuestbookCriteria andMsgNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("msg", value1, value2, ConditionMode.NOT_BETWEEN, "msg", "java.lang.String", "String");
          return this;
      }
        
      public GuestbookCriteria andMsgIn(List<java.lang.String> values) {
          addCriterion("msg", values, ConditionMode.IN, "msg", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andMsgNotIn(List<java.lang.String> values) {
          addCriterion("msg", values, ConditionMode.NOT_IN, "msg", "java.lang.String", "String");
          return this;
      }
	public GuestbookCriteria andCreatetimeIsNull() {
		isnull("createtime");
		return this;
	}
	
	public GuestbookCriteria andCreatetimeIsNotNull() {
		notNull("createtime");
		return this;
	}
	
	public GuestbookCriteria andCreatetimeIsEmpty() {
		empty("createtime");
		return this;
	}

	public GuestbookCriteria andCreatetimeIsNotEmpty() {
		notEmpty("createtime");
		return this;
	}
       public GuestbookCriteria andCreatetimeEqualTo(java.util.Date value) {
          addCriterion("createtime", value, ConditionMode.EQUAL, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeNotEqualTo(java.util.Date value) {
          addCriterion("createtime", value, ConditionMode.NOT_EQUAL, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeGreaterThan(java.util.Date value) {
          addCriterion("createtime", value, ConditionMode.GREATER_THEN, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("createtime", value, ConditionMode.GREATER_EQUAL, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeLessThan(java.util.Date value) {
          addCriterion("createtime", value, ConditionMode.LESS_THEN, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeLessThanOrEqualTo(java.util.Date value) {
          addCriterion("createtime", value, ConditionMode.LESS_EQUAL, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("createtime", value1, value2, ConditionMode.BETWEEN, "createtime", "java.util.Date", "String");
    	  return this;
      }

      public GuestbookCriteria andCreatetimeNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("createtime", value1, value2, ConditionMode.NOT_BETWEEN, "createtime", "java.util.Date", "String");
          return this;
      }
        
      public GuestbookCriteria andCreatetimeIn(List<java.util.Date> values) {
          addCriterion("createtime", values, ConditionMode.IN, "createtime", "java.util.Date", "String");
          return this;
      }

      public GuestbookCriteria andCreatetimeNotIn(List<java.util.Date> values) {
          addCriterion("createtime", values, ConditionMode.NOT_IN, "createtime", "java.util.Date", "String");
          return this;
      }
	public GuestbookCriteria andStatusIsNull() {
		isnull("status");
		return this;
	}
	
	public GuestbookCriteria andStatusIsNotNull() {
		notNull("status");
		return this;
	}
	
	public GuestbookCriteria andStatusIsEmpty() {
		empty("status");
		return this;
	}

	public GuestbookCriteria andStatusIsNotEmpty() {
		notEmpty("status");
		return this;
	}
        public GuestbookCriteria andStatusLike(java.lang.String value) {
    	   addCriterion("status", value, ConditionMode.FUZZY, "status", "java.lang.String", "String");
    	   return this;
      }

      public GuestbookCriteria andStatusNotLike(java.lang.String value) {
          addCriterion("status", value, ConditionMode.NOT_FUZZY, "status", "java.lang.String", "String");
          return this;
      }
      public GuestbookCriteria andStatusEqualTo(java.lang.String value) {
          addCriterion("status", value, ConditionMode.EQUAL, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusNotEqualTo(java.lang.String value) {
          addCriterion("status", value, ConditionMode.NOT_EQUAL, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusGreaterThan(java.lang.String value) {
          addCriterion("status", value, ConditionMode.GREATER_THEN, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("status", value, ConditionMode.GREATER_EQUAL, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusLessThan(java.lang.String value) {
          addCriterion("status", value, ConditionMode.LESS_THEN, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusLessThanOrEqualTo(java.lang.String value) {
          addCriterion("status", value, ConditionMode.LESS_EQUAL, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("status", value1, value2, ConditionMode.BETWEEN, "status", "java.lang.String", "String");
    	  return this;
      }

      public GuestbookCriteria andStatusNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("status", value1, value2, ConditionMode.NOT_BETWEEN, "status", "java.lang.String", "String");
          return this;
      }
        
      public GuestbookCriteria andStatusIn(List<java.lang.String> values) {
          addCriterion("status", values, ConditionMode.IN, "status", "java.lang.String", "String");
          return this;
      }

      public GuestbookCriteria andStatusNotIn(List<java.lang.String> values) {
          addCriterion("status", values, ConditionMode.NOT_IN, "status", "java.lang.String", "String");
          return this;
      }
}